package com.bms.admin.base.menu.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.bms.admin.base.menu.entity.Menu;
import com.bms.admin.base.menu.mapper.MenuMapper;
import com.bms.admin.base.menu.service.IMenuService;

/**
 * <p>
 * 菜单管理 服务实现类
 * </p>
 *
 * @author xj
 * @since 2018-08-09
 */
@Service
public class MenuServiceImpl extends ServiceImpl<MenuMapper, Menu> implements IMenuService {
	
	@Autowired
	private MenuMapper menuMapper;

	@Override
	public List<Menu> queryListByRoleId(Long roleId) {
		return menuMapper.queryListByRoleId(roleId);
	}

	@Override
	public List<Menu> queryListParentIds(List<Long> menuIds) {
		return menuMapper.queryListParentIds(menuIds);
	}

}
